@extends('payroll.employee_frontend.layouts.employee') @section('custom_style') @endsection @section('content') @php $company_setting = \App\Models\Payroll\CompanySettings\PayCompanySetting::first(); $conveyance_consider_day = json_encode($company_setting->conv_consider_day); @endphp

@if(!empty($conveyance_info_details)) View @elseif (!empty($conveyance_info_details_edit)) Edit @else Create @endif Conveyance History

@if (session('success'))
{{ session('success') }}
@endif @if (session('danger'))
{{ session('danger') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if(empty($conveyance_info_details)) @endif @if(!empty($conveyance_info_details)) @php $total_amount = 0 @endphp @foreach($conveyance_info_details as $details_val) @endforeach @elseif(!empty($conveyance_info_details_edit)) @php $total_amount = 0 @endphp @foreach ($conveyance_info_details_edit as $cinfo) @endforeach @else @endif
Date Purpose From To Amount in Tk
{{$details_val->conveyance_date}} {{$details_val->conveyance_purpose}} {{$details_val->conveyance_from}} {{$details_val->conveyance_to}} {{$details_val->conveyance_amount}}
@php $total_amount += $cinfo->conveyance_amount @endphp
@if(empty($conveyance_info)) @endif @if(!empty($conveyance_info_details_edit)) @endif
@endsection @section('script') @endsection