@extends('admin.layouts.app')
@push('style')
{{-- --}}
@endpush
@section('content')
@include('admin.layouts.partials.page-title',['backbutton'=>true])
All Addresses ({{$addreses->count()}})
@forelse ($addreses as $address)
@switch($address->type)
@case('home')
@php $file= asset('assets/images/home.png') @endphp
@break
@case('office')
@php $file= asset('assets/images/office.jpg') @endphp
@break
@default
@php $file= asset('assets/images/other.png') @endphp
@endswitch
{{ \Carbon\carbon::parse($address->created_at)->format('M d') }}
@switch($address->type)
@case('office')
Office
@break
@case('home')
Home
@break
@default
Other
@endswitch
@empty
No Address added Yet
@endforelse
@include('admin.layouts.paginate',['paginatedCollection'=>$addreses])
@endsection
@push('scripts')
@endpush