@extends('layout') @section('css') @endsection @section('content')
Submit
@if($submit)
@csrf @if(count($details) > 0) @foreach($details as $detail) @if(is_object($detail->detail_barang->first()->ekspedisi)) @if(strtolower($detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "udara") @php $volume = (($detail->panjang * $detail->lebar * $detail->tinggi)/6000) * $detail->carton_count; @endphp @if($volume > ($detail->berat * $detail->carton_count)) @php $total = (($detail->berat * $detail->carton_count) * @$detail->detail_barang->first()->ekspedisi->harga) + (($volume - ($detail->berat * $detail->carton_count)) * (@$detail->detail_barang->first()->ekspedisi->harga/2)) @endphp @else @php $total = @$detail->detail_barang->first()->ekspedisi->harga * $detail->carton_count * $detail->berat; @endphp @endif @else @php $volume = (($detail->panjang * $detail->lebar * $detail->tinggi)/1000000) * $detail->carton_count; $total = 0; $total = @$detail->detail_barang->first()->ekspedisi->harga * round($volume, 2) ; @endphp @endif @else @php // $volume = ($detail->panjang * $detail->lebar * $detail->tinggi)/1000000; $volume = (($detail->panjang * $detail->lebar * $detail->tinggi)/1000000) * $detail->carton_count; $total = 0; $total = @$detail->detail_barang->first()->ekspedisi->harga * $volume; @endphp @endif @endforeach @endif
No. Resi Tipe Barang Jml Karton Total Volume (m3) Total Berat (kg) Biaya cbm/kg Total Biaya
id }}> {{ @$detail->receipt->no_resi }} {{ @$detail->detail_barang->first()->ekspedisi->tipe_barang }} {{ $detail->carton_count }} {{ number_format($volume, 3, '.', ',') }} {{ ($detail->carton_count * $detail->berat) }} {{ ribuan(@$detail->detail_barang->first()->ekspedisi->harga) }} {{ ribuan($total) }}
@endif
@endsection @section('js') @endsection