@extends('user_navbar') @section('content') {{-- Edit Modal --}} {{-- End Edit Modal --}} {{-- Delete Modal --}} {{-- End Delete Modal --}} {{-- Edit For Sold Modal --}} {{-- End Edit For Sold Modal --}} {{-- Modal --}} {{-- End Modal --}} {{-- Transfer Modal --}} {{-- End Transfer Modal --}} {{-- Download Modal --}} {{-- End Download Modal --}}
@if (session('success'))
{{ session('success') }}
@endif @if (session('danger'))
{{ session('danger') }}
@endif

Available Mobiles

{{-- --}} @foreach ($mobile as $key) {{-- --}} {{-- --}} @endforeach
IDAdded at Mobile Name IMEI# SIM Lock Color Storage Battery Health Cost Price Selling Price Availability Customer Name Transfer Action
{{ $key->id }}{{ $key->created_at }}{{ \Carbon\Carbon::parse($key->created_at)->format(' Y-m-d / h:i ') }} @if(empty($key->mobile_name_id)) {{ $key->mobile_name }} @elseif($key->mobileName) {{ $key->mobileName->name }} @else N/A @endif {{ $key->imei_number }} {{ $key->sim_lock }} {{ $key->color }} {{ $key->storage }} {{ $key->battery_health }} {{ $key->cost_price }} {{ $key->selling_price }} {{ $key->availability }} {{ $key->customer_name }} |

Transfer Mobiles

@foreach ($transferMobiles as $key) @if ($key->mobile) {{-- Add a null check --}} @else @endif @endforeach
Transfer Date Mobile Name IMEI# SIM Lock Color Storage Battery Health Cost Price Selling Price Availability Sold at Added at Transfer To
{{ \Carbon\Carbon::parse($key->transfer_time)->format(' Y-m-d / h:i ') }}{{ $key->mobile->mobile_name }} {{ $key->mobile->imei_number }} {{ $key->mobile->sim_lock }} {{ $key->mobile->color }} {{ $key->mobile->storage }} {{ $key->mobile->battery_health }} {{ $key->mobile->cost_price }} {{ $key->mobile->selling_price }} {{ $key->mobile->availability }} {{ $key->mobile->sold_at }} {{ $key->mobile->created_at }}Mobile not available Mobile not available Mobile not available Mobile not available Mobile not available Mobile not available Mobile not available Mobile not available Mobile not available Mobile not available Mobile not available{{ $key->toUser->name }}
@endsection