@extends('layout') @section('content')
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if ($errors->any()) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif
Camp Date : {{ date('d/m/Y', strtotime($data['campDetails']->camp_date)) }} Camp Code : {{ $data['campDetails']->camp_code }}
{{ $data['campDetails']->campStatus->camp_status_name }}
{{ Form::open(['url' => url('/camp-list'), 'method' => 'GET']) }} {{ Form::close() }}

@if (in_array(auth()->user()->role_id, [1, 4]) && in_array($data['campDetails']->status_id, [1, 2, 5]))
@endif
@if ($data['donorDetails']->count() > 0) @foreach ($data['donorDetails']->take(3) as $value) @endforeach @else @endif
Name Age Gender
{{ $value->donor_name }} {{ $value->age }} {{ $value->gender }}
No data found

Blood Banks Details :
@if (in_array(auth()->user()->role_id, [1, 3]) && in_array($data['campDetails']->status_id, [6])) @endif @if (in_array(auth()->user()->role_id, [1]) && in_array($data['campDetails']->status_id, [1, 2, 5])) @endif
@if ($data['campDetails']->bloodcollecteddata->count() > 0) @foreach ($data['campDetails']->bloodcollecteddata as $key => $value) @endforeach @else @endif
Type Name of Blood Bank Blood Bank Code Arrival Time Closing Time No. of Bags / Units Booked Blood Unit Collected Acknowledgement
Blood Bag Code Bag No. Credit Cards Due(Nos.) Refreshment Charge(Rs.) IEC Grant Paid(Rs.)
From To
{{ $value->blood_bank_type == 1 ? 'AVBD' : 'Other' }} {{ $value->blood_bank_name }} {{ $value->blood_bank_code }} {{ isset($value->arrival_time) && $value->arrival_time != '00:00:00' ? date('h:i A', strtotime($value->arrival_time)) : '' }} {{ isset($value->closing_time) && $value->closing_time != '00:00:00' ? date('h:i A', strtotime($value->closing_time)) : '' }} {{ $value->no_of_bag_booked }} {{ $value->blood_bag_code }} {{ $value->blood_bag_from }} {{ $value->blood_bag_to }} {{ $value->credit_card_due }} {{ $value->refreshment_charge }} {{ $value->iec_grant_paid }}
No data found

@if (in_array(auth()->user()->role_id, [1, 4]) && in_array($data['campDetails']->status_id, [1, 2, 3, 5]))
@endif @if (in_array(auth()->user()->role_id, [1, 4]) && in_array($data['campDetails']->status_id, [6]))
@endif
refreshment_charge_paid == 1 ? 'checked' : '' }} disabled> Yes refreshment_charge_paid == 0 ? 'checked' : '' }} disabled class="ml-2"> No
credit_card_issued == 1 ? 'checked' : '' }} disabled> Yes credit_card_issued == 0 ? 'checked' : '' }} disabled class="ml-2"> No
iec_charge_paid == 1 ? 'checked' : '' }} disabled> Yes iec_charge_paid == 0 ? 'checked' : '' }} disabled class="ml-2"> No
Volunteers :
@if (auth()->user()->role_id == 1 && in_array($data['campDetails']->status_id, [1, 2, 5]))
@endif
{{-- --}} @if ($data['campDetails']->volunteerdata->count() > 0) @foreach ($data['campDetails']->volunteerdata as $key => $value) {{-- --}} @endforeach @else @endif
Name Contact No EmailAddress
{{ $value->volunteer_name }} {{ $value->volunteermaster->contract_no }} {{ $value->volunteermaster->email }} {{ $value->volunteermaster->address }}
No data found

Bank Account Details :
Name of the Bank & Branch @php $bankBranch = ''; if ($data['campDetails']->bankdetails) { $bankBranch = $data['campDetails']->bankdetails->bank_name . ', ' . $data['campDetails']->bankdetails->branch_name; } @endphp {{ $bankBranch }}
Name as per Bank Account {{ $data['campDetails']->bankdetails->bank_account_name ?? '' }}
Account No. {{ $data['campDetails']->bankdetails->account_no ?? '' }}
IFSC Code {{ $data['campDetails']->bankdetails->ifsc_code ?? '' }}

{{--
Acknowledgement by the Organisation :
@if (in_array(auth()->user()->role_id, [1, 4]) && in_array($data['campDetails']->status_id, [6])) @endif
a) Received the following Credit Cards due to the Blood Donors :
    @if ($data['campDetails']->bloodcollecteddata->count() > 0) @foreach ($data['campDetails']->bloodcollecteddata as $key => $value)
  1. {{ $value->credit_card_due }} nos from Blood Bank {{ $value->blood_bank_name }} Blood Bank
  2. @endforeach @endif
b) Received the following amount on account of Refreshment charge due to the Blood Donors:
    @if ($data['campDetails']->bloodcollecteddata->count() > 0) @foreach ($data['campDetails']->bloodcollecteddata as $key => $value)
  1. Rs.{{ $value->refreshment_charge }} from {{ $value->blood_bank_name }} Blood Bank
  2. @endforeach @endif
c) Received IEC grant paid by blood bank :
    @if ($data['campDetails']->bloodcollecteddata->count() > 0) @foreach ($data['campDetails']->bloodcollecteddata as $key => $value)
  1. Rs.{{ $value->iec_grant_paid }} from {{ $value->blood_bank_name }} Blood Bank
  2. @endforeach @endif
--}}
@foreach ($data['donorDetails'] as $value) @endforeach @foreach ($data['donorDetails'] as $value) @endforeach @foreach ($data['donorDetails'] as $value) @endforeach @foreach ($data['donorDetails'] as $value) @endforeach @endsection