@extends('layouts.app')
@section('title', __('lang_v1.'.$type.'s'))
@php
$api_key = env('GOOGLE_MAP_API_KEY');
@endphp
@if(!empty($api_key))
@section('css')
@include('contact.partials.google_map_styles')
@endsection
@endif
@section('content')
@component('components.widget', ['class' => 'box-primary', 'title' => __( 'contact.all_your_contact', ['contacts' => __('lang_v1.'.$type.'s') ])])
@if(auth()->user()->can('supplier.create') || auth()->user()->can('customer.create'))
@slot('tool')
@endslot
@endif
@if(auth()->user()->can('supplier.view') || auth()->user()->can('customer.view'))
@endif
@endcomponent
@stop
@section('javascript')
@if(!empty($api_key))
@endif
@endsection