@csrf @if($update) @method('PUT') @else @method('POST') @endif