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

@if($dsr->description) @endif
Dsr Title : {{ ucfirst($dsr->title) }}
Visit : @if($visit==null) {{ $dsr->visit_name }} @else {{ ucfirst($visit->name) }} @endif
Purpose : @if($visit==null) {{ $dsr->purpose->name }} @else {{ ucfirst(@$visit->purpose->name) }} @endif
Venue : @if($visit==null) {{ $dsr->venue }} @else {{ ucfirst($visit->venue) }} @endif
Visit From: @if($visit==null) {{ $dsr->from_time }} @else {{ ucfirst($visit->from_time) }} @endif
Visit Till @if($visit==null) {{ $dsr->to_time }} @else {{ ucfirst($visit->to_time) }} @endif
Description : {{ $dsr->description }}
Assigned To : {{ $currEmp->name }}
Customer Name: @if($visit==null) {{ $dsr->customer->name }} @else {{ ucfirst($visit->customer->name) }} @endif
Mobile Number: @if($visit==null) {{ $dsr->customer->mobile }} @else {{ ucfirst($visit->customer->mobile) }} @endif
Email Id : @if($visit==null) {{ $dsr->customer->email }} @else {{ ucfirst($visit->customer->email) }} @endif
Address : @if($visit==null) {{ $dsr->customer->company_address }} @else {{ ucfirst($visit->customer->company_address) }} @endif
Geo Address : @if($visit==null) {{ $dsr->customer->geo_address }} @else {{ ucfirst($visit->customer->geo_address) }} @endif
@if($dsr->attachments)

DSR Attachment

@if($dsr->attachments) @foreach($dsr->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