@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')

{{trans('common/common.view')}} {{trans('master/master.visit_record')}}

{{trans('master/master.name')}} : {{ ucfirst($visit->name) }}
{{trans('master/master.purpose')}} : {{ ucfirst(@$visit->purpose->name) }}
{{trans('master/master.venue')}} : {{ ucfirst($visit->venue) }}
{{trans('master/master.assigned_to')}} : {{ $currEmp->name }}
{{trans('master/master.customer_name')}} : {{ ucfirst($visit->customer->name) }}
{{trans('master/master.mobile_number')}} : {{ ucfirst($visit->customer->mobile) }}
{{trans('master/master.email_id')}} : {{ ucfirst($visit->customer->email) }}
{{trans('master/master.address')}} : {{ ucfirst($visit->customer->company_address) }}
{{trans('master/master.geo_address')}} : {{ ucfirst($visit->customer->geo_address) }}
{{trans('master/master.visit_from')}} : {{ ucfirst($visit->from_time) }}
{{trans('master/master.visit_till')}} : {{ ucfirst($visit->to_time) }}
{{trans('master/master.remarks')}} : {{ ucfirst($visit->remarks) }}
{{trans('master/master.status')}} : {{ ucfirst($visit->status) }}
{{trans('master/master.created_by')}} : {{ $createdBy->name }}
@if($visit->attachments)

{{trans('common/common.attachments')}}

@if($visit->attachments) @foreach($visit->getMedia('attachments') as $attachment)
@if($attachment->mime_type=="application/msword" || $attachment->mime_type=="appplication/docx" || $attachment->mime_type=="appplication/doc") avatar img @elseif($attachment->mime_type=="application/pdf") avatar img @else avatar img @endif

{{$attachment->file_name}}

@endforeach @endif
@endif
@endsection @push('footer-script') @endpush